<?php
namespace App\Providers;

use Illuminate\Support\ServiceProvider;
class ComposerServiceProvider extends ServiceProvider
{


    /**
     * Register bindings in the container.
     *
     * @return void
     */
    public function boot()
    {
        // Using class based composers...
        view()->composer(
            'member.*','App\Http\ViewComposers\MemberComposer'
        );
        /*view()->composer(
            'admin.*', 'App\Http\ViewComposers\AdminComposer'
        );*/
        view()->composer(
            'company.*', 'App\Http\ViewComposers\CompanyCenterComposer'
        );
        view()->composer(
            'business.*', 'App\Http\ViewComposers\BusinessComposer'
            );
        view()->composer(
            'front.*', 'App\Http\ViewComposers\FrontComposer'
        );
        view()->composer(
            'cam_enterprise.*', 'App\Http\ViewComposers\Cam_enterpriseComposer'
        );
        view()->composer(
            'cam_individual.*', 'App\Http\ViewComposers\Cam_individualComposer'
        );
        view()->composer(
            'share.*', 'App\Http\ViewComposers\FrontComposer'
        );
        view()->composer(
            'member.refuel', 'App\Http\ViewComposers\RefuelComposer'
        );
        view()->composer(
            'admin.*','App\Http\ViewComposers\KaoheComposer'
        );
        view()->composer(
            'frontuser.caidan','App\Http\ViewComposers\UserMenuComposer'
        );
        view()->composer(
            'cimo_admin.*','App\Http\ViewComposers\CimoAdminComposer'
        );
        view()->composer(
            ['pc_admin.attendance_left','pc_sysadmin.attendance_left'],'App\Http\ViewComposers\PcComposer'
        );
        view()->composer(
            ['pc_admin.app'],'App\Http\ViewComposers\PcHeadComposer'
        );
        view()->composer(
            ['*'],'App\Http\ViewComposers\SkinComposer'
        );
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}
